from jieba import lcut
f = open('沉默的羔羊.txt', 'r', encoding='utf-8')
txt = lcut(f.read())
words = list(txt)
counts = {}
for word in words:
    counts[word] = counts.get(word, 0) + 1
items = list(counts.items())
items.sort(key=lambda x: x[1], reverse=True)
for word in items:
    if len(word[0]) >= 2:
        name, num = word
        print(name)
        break
f.close()



